<div class="card">

    <div class="portlet">
        <form class="portlet-search-body" name="queryForm">
            <input type="text" class="form-control search-item" ng-model="orderId" placeholder="制作单编号">
            <div class="search-item">
                <button class="btn btn-icon-only default"><i class="fa fa-chevron-right"></i></button>
                <button class="btn btn-sm query" ng-click="grid.query();"><i class="fa fa-search"></i> 查询</button>
                <button class="btn btn-sm reset" ng-click="grid.reset();"><i class="fa fa-eraser"></i> 重置</button>
            </div>
        </form>
        <div class="portlet-body">
            <table ed-grid="grid"  class="table table-striped table-bordered table-advance table-hover"
                   data-options="url: 'reimburseBill/query.do', form: 'queryForm', modal: 'modal'">
                <thead>
                <tr>
                    <th data-options="field: '_index'"></th>
                    <th data-options="field: 'orderId'">制作单id</th>
                    <th data-options="field: 'reimburseUsage'">用途</th>
                    <th data-options="field: 'reimburseType | code : reimburse_type'">分类</th>
                    <th data-options="field: 'reimburseCount'">数量</th>
                    <th data-options="field: 'totalAmount'">总额(￥)</th>
                    <th data-options="field: 'deptName'">申请部门</th>
                    <th data-options="field: 'empName'">报销人</th>
                    <th data-options="field: 'status | code : reimburse_status'">状态</th>
                    <th style="min-width: 180px;">操作</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
</div>

<div ed-modal="modal" data-options="title: '报销审批', static: true, width: 720, defaultButton:false">

    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
            <div class="form-group">
                <label class="col-md-2 control-label">用途:</label>
                <div class="col-md-4" style="margin-top: 9px;">
                    {{reimburseCheck.reimburseUsage}}
                </div>
                <label class="col-md-2 control-label">分类:</label>
                <div class="col-md-4" style="margin-top: 9px;">
                    {{reimburseCheck.reimburseType | code : 'reimburse_type'}}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">数量:</label>
                <div class="col-md-4" style="margin-top: 9px;">
                    {{reimburseCheck.reimburseCount}}
                </div>
                <label class="col-md-2 control-label">总额(￥):</label>
                <div class="col-md-4" style="margin-top: 9px;">
                    {{reimburseCheck.totalAmount}}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">申请部门:</label>
                <div class="col-md-4" style="margin-top: 9px;">
                    {{reimburseCheck.deptName}}
                </div>
                <label class="col-md-2 control-label">报销人:</label>
                <div class="col-md-4" style="margin-top: 9px;">
                    {{reimburseCheck.empName}}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">状态:</label>
                <div class="col-md-4" style="margin-top: 9px;">
                    {{reimburseCheck.status | code : 'reimburse_status'}}
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">备注:</label>
                <div class="col-md-10" style="margin-top: 9px;">
                    <textarea ng-show="!viewFlag" class="form-control" name="remark" ng-model="reimburseCheck.remark">
                    </textarea>
                    <span ng-show="viewFlag">
                        {{reimburseCheck.remark}}
                    </span>
                </div>
            </div>
        </div>
        <div class="form-actions">
            <button type="button" ng-show="!viewFlag" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" ng-show="!viewFlag" class="btn blue" ng-click="grid.save()">
                <i class="fa fa-times"></i> 确定
            </button>
            <button type="button" ng-show="viewFlag" class="btn blue" ng-click="grid.cancel()">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>
